project (Unabomber)

cmake_minimum_required (VERSION 2.6)
set (SOURCES
  main.cpp
  capp.cpp
  event.cpp
  surface.cpp
  field.cpp
  player.cpp
  unit.cpp
  entity.cpp
  animation.cpp
)

# REQUIRED does not work in CMake <=2.4.6 for SDL
Find_Package ( SDL REQUIRED )
#Find_Package ( SDL_image REQUIRED ) # if using SDL_image

link_libraries (
   ${SDL_LIBRARY}
   ${SDLIMAGE_LIBRARY} # if using SDL_image, obviously
   SDLmain # Sadly not included in SDL_LIBRARY variable
)

add_executable(unabomber WIN32 ${SOURCES})